{extend name="layout/index" /}
{block name="title"}
<title>修改积分规则</title>
{/block}
{block name="adminUser"}
	<a href="#" data-toggle="dropdown">
		<img src="/admin/images/user-4.png" alt="user-image" class="img-circle img-inline userpic-32" width="28" />
		<span>
			{$adminUser}
			<i class="fa-angle-down"></i>
		</span>
	</a>
{/block}
{block name="content"}
		<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">修改积分规则</h3>
							<div class="panel-options">
								<a href="#" data-toggle="panel">
									<span class="collapse-icon">&ndash;</span>
									<span class="expand-icon">+</span>
								</a>
								<a href="#" data-toggle="remove">
									×
								</a>
							</div>
						</div>
						<div class="panel-body">
							
							<form action="{:url('admin/doIntegralEdit')}" method="post" enctype="multipart/form-data" role="form" class="form-horizontal">

								<div class="form-group">
									<label class="col-sm-2 control-label">选择修改积分方式</label>
										<div class="col-sm-10">
										<select name="flag" class="form-control">
											<option  value="0">--请选择--</option>
											{foreach name="integrals" id="vo"}
											<option {if condition="$integral.flag == $vo.flag"} selected {/if} value="{$vo.flag}">--{$vo.name}--</option>
											{/foreach}
										</select>
									</div>
								</div>	

									<div class="form-group-separator"></div>

								
								<div class="form-group video_price">
									<label class="col-sm-2 control-label">积分值</label>									
									<div class="col-sm-10 " >
										<div class="input-group">
											<input class="form-control" type="text" name="value" value="{$integral.value}">
											<span class="input-group-addon">.00</span>
										</div>
									</div>
								</div>

								<div class="form-group-separator"></div>
								<input type="hidden" name="id" value="{$integral.id}">
								<input type="submit" value="点击修改" class="btn btn-info btn-single pull-right"/>
							</form>
							
						</div>
					</div>
{/block}


